import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/Index.vue'

Vue.use(Router)

export default new Router({
  routes: [
    // 首页
    { path: '/', component: Index },
    // 详情页
    { path: '/detail', component: () => import('./views/Detail.vue') },
    // 忘记密码页
    { path: '/forgetPassword', component: () => import('./views/ForgetPassword.vue') },
    // 登录页
    { path: '/login', component: () => import('./views/Login.vue') },
    // 理财页
    { path: '/money', component: () => import('./views/Money.vue') },
    // 我的页
    { path: '/my', component: () => import('./views/My.vue') },
    // 预约页
    { path: '/order', component: () => import('./views/Order.vue') },
    // 注册页
    { path: '/register', component: () => import('./views/Register.vue') },

  ]
})
